package p270jp.pxv.android.commonObjects.model;

import android.support.p024v4.media.C0261e;
import java.io.Serializable;
import java.util.LinkedHashMap;
import p089d.C2425g;
import p325m0.MutabilityOwnership;

/* compiled from: PixivAppApiError.kt */
/* renamed from: jp.pxv.android.commonObjects.model.PixivAppApiError */
/* loaded from: classes2.dex */
public final class PixivAppApiError implements Serializable {
    private final String message;
    private final String reason;
    private final String userMessage;
    private final LinkedHashMap<String, String> userMessageDetails;

    public PixivAppApiError(String str, LinkedHashMap<String, String> linkedHashMap, String str2, String str3) {
        this.userMessage = str;
        this.userMessageDetails = linkedHashMap;
        this.message = str2;
        this.reason = str3;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static /* synthetic */ PixivAppApiError copy$default(PixivAppApiError pixivAppApiError, String str, LinkedHashMap linkedHashMap, String str2, String str3, int i, Object obj) {
        if ((i & 1) != 0) {
            str = pixivAppApiError.userMessage;
        }
        if ((i & 2) != 0) {
            linkedHashMap = pixivAppApiError.userMessageDetails;
        }
        if ((i & 4) != 0) {
            str2 = pixivAppApiError.message;
        }
        if ((i & 8) != 0) {
            str3 = pixivAppApiError.reason;
        }
        return pixivAppApiError.copy(str, linkedHashMap, str2, str3);
    }

    public final String component1() {
        return this.userMessage;
    }

    public final LinkedHashMap<String, String> component2() {
        return this.userMessageDetails;
    }

    public final String component3() {
        return this.message;
    }

    public final String component4() {
        return this.reason;
    }

    public final PixivAppApiError copy(String str, LinkedHashMap<String, String> linkedHashMap, String str2, String str3) {
        return new PixivAppApiError(str, linkedHashMap, str2, str3);
    }

    @Override // java.lang.Object
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof PixivAppApiError)) {
            return false;
        }
        PixivAppApiError pixivAppApiError = (PixivAppApiError) obj;
        return MutabilityOwnership.m3749h(this.userMessage, pixivAppApiError.userMessage) && MutabilityOwnership.m3749h(this.userMessageDetails, pixivAppApiError.userMessageDetails) && MutabilityOwnership.m3749h(this.message, pixivAppApiError.message) && MutabilityOwnership.m3749h(this.reason, pixivAppApiError.reason);
    }

    public final String getMessage() {
        return this.message;
    }

    public final String getReason() {
        return this.reason;
    }

    public final String getUserMessage() {
        return this.userMessage;
    }

    public final LinkedHashMap<String, String> getUserMessageDetails() {
        return this.userMessageDetails;
    }

    @Override // java.lang.Object
    public int hashCode() {
        String str = this.userMessage;
        int i = 0;
        int hashCode = (str == null ? 0 : str.hashCode()) * 31;
        LinkedHashMap<String, String> linkedHashMap = this.userMessageDetails;
        int hashCode2 = (hashCode + (linkedHashMap == null ? 0 : linkedHashMap.hashCode())) * 31;
        String str2 = this.message;
        int hashCode3 = (hashCode2 + (str2 == null ? 0 : str2.hashCode())) * 31;
        String str3 = this.reason;
        if (str3 != null) {
            i = str3.hashCode();
        }
        return hashCode3 + i;
    }

    @Override // java.lang.Object
    public String toString() {
        StringBuilder c = C0261e.m12042c("PixivAppApiError(userMessage=");
        c.append((Object) this.userMessage);
        c.append(", userMessageDetails=");
        c.append(this.userMessageDetails);
        c.append(", message=");
        c.append((Object) this.message);
        c.append(", reason=");
        return C2425g.m7728d(c, this.reason, ')');
    }
}
